package com.huizu.project.apiController;

import com.huizu.common.annotation.Anonymous;
import com.huizu.common.annotation.Log;
import com.huizu.common.core.controller.BaseController;
import com.huizu.common.core.domain.AjaxResult;
import com.huizu.common.core.page.TableDataInfo;
import com.huizu.common.enums.BusinessType;
import com.huizu.common.utils.poi.ExcelUtil;
import com.huizu.project.domain.ProConfigSybz;
import com.huizu.project.service.IProConfigSybzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 使用帮助Controller
 * 
 * @author zhangmx
 * @date 2024-06-05
 */
@Anonymous
@RestController
@RequestMapping("/api/proconfigsybz")
public class ApiProConfigSybzController extends BaseController
{
    @Autowired
    private IProConfigSybzService proConfigSybzService;

    /**
     * 查询使用帮助列表
     */
    @PostMapping("/list")
    public TableDataInfo list(ProConfigSybz proConfigSybz)
    {
        List<ProConfigSybz> list = proConfigSybzService.selectProConfigSybzList(proConfigSybz);
        return getDataTable(list);
    }


    /**
     * 获取使用帮助详细信息
     */
    @PostMapping(value = "/getById")
    public AjaxResult getInfo(@RequestBody ProConfigSybz proConfigSybz)
    {
        String id = proConfigSybz.getId();
        return success(proConfigSybzService.selectProConfigSybzById(id));
    }


}
